package com.wyw.function.learning.demo2;

import com.wyw.function.learning.common.Apple;
import com.wyw.function.learning.common.AppleClient;

/**
 * @Title   在DemoCLient2的基础上使用泛型管理
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * Update History:
 * Author        Time            Content
 */
public class DemoClient4 {

    public static void main(String[] args) {
        System.out.println(AppleClient.fileterApplesT(AppleClient.getApples(), e -> {
            Apple apple = (Apple) e;
            return apple.getWeight() > 150;
        }));
    }

}
